package Combination;

import java.util.ArrayList;
import java.util.List;

/**
 * @author duanzhizhou
 * @date 2024/10/17
 */
public abstract class Company {
    
    final private char[] ss = new char[]{'a'};
    
    protected String name;
    
    protected List<Company> child = new ArrayList<>();
    
    public Company(String name) {
        this.name = name;
    }
    
    public abstract void add(Company company);
    
    public abstract void remove(Company company);
    
    public void show(int depth) {
        for (int i = 0; i < depth; i++) {
            System.out.print("-");
        }
        System.out.println(name);
        for (Company company : child) {
            company.show(depth + 2);
        }
    }
    
    public abstract void func();
}
